<template>
	<view class="mask">
		<view class="mask-content">
			<view class="logo">
				<image src="../static/logo.png" mode="aspectFit"></image>
				<view class="titl">U云智能无人超市</view>
			</view>
			
			<view v-on:click="onKeep" class="btn-keep">再逛一逛</view>
			<view v-on:click="onLeave" class="btn-leave">开门离开</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			onLeave() {
				this.$emit("leave")
			},
			onKeep() {
				this.$emit("keep")
			}
		}
	}
</script>

<style>
	.mask {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0px;
		left: 0px;
		background-color: rgba(0,0,0,0.8);
		z-index: 9999;
	}
	.mask-content {
		position: absolute;
		background-color: white;
		border-radius: 5px;
		width: 80%;
		height: 210px;
		top: 50%;
		margin-top: -130px;
		left: 10%;
		display: flex;
		align-items: center;
		align-content: center;
		flex-direction: column;
		overflow: hidden;
		padding-bottom: 20px;
	}
	.btn-keep {
		background-color: #52CBC6;
		color: white;
		text-align: center;
		height: 45px;
		width: 90%;
		font-weight: bold;
		font-size: 16px;
		line-height: 40px;
		border-radius: 20px;
		margin-bottom: 10px;
	}
	.btn-leave {
		color: #333333;
		text-align: center;
		height: 40px;
		width: 90%;
		font-weight: bold;
		font-size: 16px;
		line-height: 40px;
		border-radius: 20px;
		border: 1px solid #52CBC6;
		color: #52CBC6;;
	}
	.logo {
		width: 100%;
		height: 100px;
		margin-bottom: 20px;
		box-sizing: border-box;
		padding: 15px 15px;
		font-size: 25px;
		font-weight: bolder;
		text-align: center;
		color: white;
		margin-bottom: 20px;
	}
	.logo image {
		width: 100%;
		height: 70%;
	}
	.titl {
		font-size: 14px;
		color: #52CBC6;
	}
</style>